package com.peas.platform.module.icims.budget.project.adapter.repository.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.peas.platform.common.core.annotation.Comment;
import com.peas.platform.framework.mybatisplus.po.BasePo;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.ibatis.type.JdbcType;
import javax.validation.constraints.*;

// 项目通知附件
@Data
@EqualsAndHashCode(callSuper = false)
@TableName(value = "`tbl_budget_project_notice_file`")
public class BudgetProjectNoticeFilePo extends BasePo {

    // 项目通知ID
    // 【项目通知表】
    @Comment(value = "项目通知ID")
    @TableField(value = "`budget_project_notice_id`", jdbcType = JdbcType.BIGINT)
    private Long budgetProjectNoticeId;

    // 附件ID
    // 【附件表】
    @Comment(value = "附件ID")
    @TableField(value = "`attachment_id`", jdbcType = JdbcType.BIGINT)
    private Long attachmentId;

    // 附件名称
    @Comment(value = "附件名称")
    @Size(max = 200, message = "附件名称不能超过200个字符")
    @TableField(value = "`attachment_name`", jdbcType = JdbcType.VARCHAR)
    private String attachmentName;

}
